#include <iostream>
#include <string>
#include <list>
using namespace std;

void print(const list<int>&l)
{
	string dot = ",";
	for (std::list<int>::const_iterator i = l.begin(); i != l.end(); ++i)
	{
		cout<<*i<<dot;
	}
	cout<<endl;
}
int main(int argc, char const *argv[])
{
	list<int> L1;
	for (int i = 0; i < 23; ++i)
	{
		L1.push_back(i);
	}
	print(L1);
	list<int> L2(L1.begin(), L1.end());
	print(L2);
	list<int> L3(L2);
	print(L3);
	list<int> L4(10, 1000);
	print(L4);
	cout<<__cplusplus<<endl;
	return 0;
}
